package com.example.wac.enums;

/**
 * @author wuancheng
 * @description
 * @date 2022-01-17 15:37:00
 */

@SuppressWarnings("all")
public enum  FileTypeEnum {

    JPG("image","jpg"),
    JPEG("image","jpeg"),
    GIF("image","gif"),
    PNG("image","png"),
    BMP("image","bmp"),
    TXT("text","txt"),
    XLSX("text","xlsx"),
    XML("text","xml"),
    HTML("text","html"),
    ;

    private String suffix;

    private String type;

    FileTypeEnum(String suffix) {
        this.suffix = suffix;
    }

    FileTypeEnum(String type, String suffix){
        this.suffix = suffix;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getSuffix() {
        return suffix;
    }
}
